package hero.mps.inter_view;

public class StringIsPalindrome {
    public static boolean stringIsPalindrome(String s){
        int begin = 0, end = s.length() - 1;
        while (begin <= end) {
            if (s.charAt(begin++) != s.charAt(end--)) return false;
        }
        return true;
    }

    public static void main(String[] args) {
        System.out.println(stringIsPalindrome("asdasa"));
    }
}
